LEADTOOLS Medical (Leadtools.Medical.Caching assembly)
LEAD Technologies, Inc

Insert(String,Byte[],CacheItemPriority) Method






A System.String that uniquely identifies the cache item to be added.
An array of System.Byte representing the item data.
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
Inserts a new item to the cache store.
Syntax
public virtual void Insert( 
   string id,
   byte[] data,
   CacheItemPriority priority
)
'Declaration
 
Public Overloads Overridable Sub Insert( _
   ByVal id As String, _
   ByVal data() As Byte, _
   ByVal priority As CacheItemPriority _
) 
'Usage
 
Dim instance As Cache
Dim id As String
Dim data() As Byte
Dim priority As CacheItemPriority
 
instance.Insert(id, data, priority)
public virtual void Insert( 
   string id,
   byte[] data,
   CacheItemPriority priority
)
 function Leadtools.Medical.Caching.Cache.Insert(String,Byte[],CacheItemPriority)( 
   id ,
   data ,
   priority 
)
public:
virtual void Insert( 
   String^ id,
   array<byte>^ data,
   CacheItemPriority priority
) 

Parameters

id
A System.String that uniquely identifies the cache item to be added.
data
An array of System.Byte representing the item data.
priority
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
Remarks

This method will always try to insert the cache item without checking if the item exists. If the item already exists in the cache the behavior of this method depends of the implementation object of the Leadtools.Medical.Caching.Storage.IStorageProvider interface.

Use the Add(String,Byte[],CacheItemPriority) method to check if the item exists in the cache before inserting the item.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cache Class
Cache Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.